﻿
using System.Text.RegularExpressions;
using System;
using System.Collections.Generic;
namespace LantinxShare.Common
{
    public class G
    {
        public static List<String[]> GetSplit(String result)
        {
            List<String[]> list = new List<String[]>();
            if (result == null || string.IsNullOrEmpty(result))
            {
                return list;

            }
            String[] objList = Regex.Split(result, "[#][$]");
            foreach (var item in objList)
            {
                String[] propList = Regex.Split(item, "[#][n]");
                list.Add(propList);
            }
            return list;
        }// end for method

        public static String _ = "#n";
        public static String @P = "#$";
        public static String DD = "yyyyMMddHHmm00";
        public static double BLongitude(double longitude)
        {
            return longitude - GConstant.AmendedLongtude;
        }
        public static double BLatitude(double latitude)
        {
            return latitude - GConstant.AmendedLatitude;
        }

        public static double CLongitude(double longitude)
        {
            return longitude + GConstant.AmendedLongtude;
        }
        public static double CLatitude(double latitude)
        {
            return latitude + GConstant.AmendedLatitude;
        }
    }// end for class
}
